<?php
/* SVN FILE: $Id: default.ctp 2893 2010-09-02 09:42:54Z sakthivel_135at10 $ */
/**
 *
 * PHP versions 4 and 5
 *
 * CakePHP(tm) :  Rapid Development Framework (http://www.cakephp.org)
 * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @filesource
 * @copyright     Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
 * @link          http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
 * @package       cake
 * @subpackage    cake.cake.console.libs.templates.skel.views.layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @version       $Revision: 7805 $
 * @modifiedby    $LastChangedBy: AD7six $
 * @lastmodified  $Date: 2008-10-30 23:00:26 +0530 (Thu, 30 Oct 2008) $
 * @license       http://www.opensource.org/licenses/mit-license.php The MIT License
 */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
	<?php echo $this->Html->charset(), "\n";?>
	<?php if($this->request->params['controller'] == 'projects' && $this->request->params['action'] == 'view'): ?>
		<title><?php echo $this->Html->cText($title_for_layout, false);?> | <?php echo Configure::read('site.name');?></title>
	<?php else:?>
		<title><?php echo Configure::read('site.name');?> | <?php echo $this->Html->cText($title_for_layout, false);?></title>
	<?php endif; ?>
	<?php
		echo $this->Html->meta('icon'), "\n";
		echo $this->Html->meta('keywords', $meta_for_layout['keywords']), "\n";
		echo $this->Html->meta('description', $meta_for_layout['description']), "\n";
		echo $this->Html->css('default.cache', null, array('inline' => true));
		// For other than Facebook (facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)), wrap it in comments for XHTML validation...
		if (strpos(env('HTTP_USER_AGENT'), 'facebookexternalhit')===false):
			echo '<!--', "\n";
		endif;
	?>
<meta content="<?php echo Configure::read('facebook.app_id');?>" property="og:app_id" />
<meta content="<?php echo Configure::read('facebook.app_id');?>" property="fb:app_id" />
<?php if(!empty($meta_for_layout['project_name'])):?>
<meta property="og:site_name" content="<?php echo Configure::read('site.name'); ?>"/>
<meta property="og:title" content="<?php echo $meta_for_layout['project_name'];?>"/>
<?php endif;?>
<?php if(!empty($meta_for_layout['project_image'])):?>
<meta property="og:image" content="<?php echo $meta_for_layout['project_image'];?>"/>
<?php else:?>
<meta property="og:image" content="<?php echo Router::url(array(
'controller' => 'img',
'action' => 'logo.png',
'admin' => false
) , true);?>"/>
<?php endif;?>
	<?php
	if (strpos(env('HTTP_USER_AGENT'), 'facebookexternalhit')===false):
		echo '-->', "\n";
	endif;
	?>
</head>
<body>
	<div id="<?php echo $this->Html->getUniquePageId();?>" class="content">
		<div id="main" class="clearfix">
			<div class="main-inner embed-page clearfix">
				<?php
					if ($this->Session->check('Message.error')):
						echo $this->Session->flash('error');
					endif;
					if ($this->Session->check('Message.success')):
						echo $this->Session->flash('success');
					endif;
					if ($this->Session->check('Message.flash')):
						echo $this->Session->flash();
					endif;
				?>
				<?php echo $content_for_layout;?>
			</div>
		</div>
	</div>
</body>
</html>